package com.etc.dao;

import com.etc.pojo.History;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HistoryPersonageDao {

    /**
     * 查询用户发布所有视频
     * @param userId
     * @return
     */
    List<History> queryAllHistoryByUserId(@Param("userId") String userId, @Param("date") Integer date);

    /**
     * 删除视频
     * @param historyId
     * @return
     */
    int deleteHistoryByVideoId(@Param("historyId") Integer historyId);
}
